package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.Outlets;
import com.ecoolex.hotel.saas.entity.OutletsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface OutletsMapper {
    long countByExample(OutletsExample example);

    int deleteByExample(OutletsExample example);

    int deleteByPrimaryKey(Integer outletsId);

    int insert(Outlets record);

    int insertSelective(@Param("record") Outlets record, @Param("selective") Outlets.Column ... selective);

    Outlets selectOneByExample(OutletsExample example);

    List<Outlets> selectByExample(OutletsExample example);

    Outlets selectByPrimaryKey(Integer outletsId);

    Outlets selectByPrimaryKeyWithLogicalDelete(@Param("outletsId") Integer outletsId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") Outlets record, @Param("example") OutletsExample example, @Param("selective") Outlets.Column ... selective);

    int updateByExample(@Param("record") Outlets record, @Param("example") OutletsExample example);

    int updateByPrimaryKeySelective(@Param("record") Outlets record, @Param("selective") Outlets.Column ... selective);

    int updateByPrimaryKey(Outlets record);

    int batchInsert(@Param("list") List<Outlets> list);

    int batchInsertSelective(@Param("list") List<Outlets> list, @Param("selective") Outlets.Column ... selective);

    int logicalDeleteByExample(@Param("example") OutletsExample example);

    int logicalDeleteByPrimaryKey(Integer outletsId);
}